package com.team11.server.controller.teacher;


import com.team11.server.pojo.TInformation;
import com.team11.server.service.ITInformationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author pjc
 * @since 2021-06-12
 */
@CrossOrigin
@RestController
@RequestMapping("/teacher")
@Api(tags = "教师接口")
public class TeacherTInformationController {

    @Autowired
    private ITInformationService itInformationService;

    @ApiOperation(value = "下拉框：所有教师名称")
    @GetMapping("/getAllTeacher")
    public List<String> getAllTeacher() {
        List<String> list = (List<String>) itInformationService.getAllTeacher();
        return list;
    }
}
